#include <iostream>
#include <stdexcept>
#include <string>
#include <fstream>

using namespace std;

void main() {
	string tNimi = "linuxUsers.txt";
	string tmp;
	try{
		ifstream tiedosto(tNimi);
		if (tiedosto.is_open()) {
			while(!getline(tiedosto, tmp, ':').eof()) {
				string uname = tmp;
				/*while(!getline(tiedosto, tmp, 'x').eof()) {
					string uid = tmp; 
					string home;
					string shell;
					cout << uid;
				}*/
				cout << uname;

				}
			cout << endl;
		} else cout << "Unable to read file: " << tNimi << endl;
	} catch (exception& e) {
		cerr << e.what() <<endl;
	}
}